<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    design
 * @package     default_iphone
 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php
/**
 * Top menu for store
 *
 * @see Mage_Catalog_Block_Navigation
 */
?>
<script type="text/javascript">
//<![CDATA[
	function validatePollAnswerIsSelected()
	{
	    var options = $$('input.poll_vote');
	    for( i in options ) {
	        if( options[i].checked == true ) {
	            return true;
	        }
	    }
	    return false;
	}
//]]>
</script>
<link rel="stylesheet" href="<?php echo $this->getSkinUrl()?>css/ui.datepicker.css" type="text/css" media="screen" title="core css file" charset="utf-8" />
<script src="<?php echo $this->getSkinUrl()?>js/ui.datepicker.js" type="text/javascript" charset="utf-8"></script>
<script src="<?php echo $this->getSkinUrl()?>js/mydate.js" type="text/javascript" charset="utf-8"></script>
      <div class="column3"> 
      <a class="banner_col3 banner_col3_first" href="#">
      <img src="<?php echo $this->getSkinUrl()?>images/ad_3clom_entrance_banner.png"/></a> 
      <a class="banner_col3"  href="#"><img src="<?php echo $this->getSkinUrl()?>images/ad_3clum_main_hall_rb.png"/></a> 
      <a class="banner_col3"  href="#"><img src="<?php echo $this->getSkinUrl()?>images/ad_3clom_ice_rink_banner.png"/></a> 
      <a class="banner_col3"  href="#"><img src="<?php echo $this->getSkinUrl()?>images/ad_3colum_internal_poster_site.png"/></a> 
      <a class="banner_col3"  href="#"><img src="<?php echo $this->getSkinUrl()?>images/ad_3colum_website_sponsor.png"/></a>
      <a class="banner_col3"  href="<?php echo $this->getUrl()?>customer-statistics"><img src="<?php echo $this->getSkinUrl()?>images/ad_3colum_cu_s.png"/></a>
        
        <div class="banner_col3 ad_3colum_quik_contact">             
             <div class="con">
                   <p>
                     Send us a few or your requirements and we will get back to you as soon as possible             
                   </p>
                   <div class="aqc1 aqc_inputs aqc_name">
                        <input  type="text" value="Your Contact Name" name="name" class="tishi-input" tishinum="1"/>
                   </div>
                    <div class="aqc1 aqc_inputs aqc_email">
                        <input  type="text" value="Your Contact Email Address" name="email" class="tishi-input" tishinum="2"/>
                   </div>
                   <div class="aqc1 aqc_inputs aqc_type">
                        <input  type="text" value="Select Advertising Type..." name="type" onclick="showUl('ad_quick_contact_ul');" id="aqc_type_val"/>
                        <ul id="ad_quick_contact_ul" onmousemove="showUl('ad_quick_contact_ul');" onmouseout="hidUl('ad_quick_contact_ul');">
                             <li><div onclick="senddata_simple(this,'ad_quick_contact_ul','#aqc_type_val');">type-1</div></li>
                             <li><div onclick="senddata_simple(this,'ad_quick_contact_ul','#aqc_type_val');">type-2</div></li>
                             <li><div onclick="senddata_simple(this,'ad_quick_contact_ul','#aqc_type_val');">type-3</div></li>
                        </ul>
                   </div>
                   <div class="aqc1 aqc_inputs aqc_date">
                        <table>
                              <tr>
                              <td style="font-size:11px; line-height:11px; font-weight:bold; font-family:Arial, Helvetica, sans-serif; width:131px;color:#2f2a2b;">Select A Prefered Date</td>
                              <td>
                                    <input type="text" value="" id="ad_quick_contact_calendar" name="date"/>
                                    <script type="text/javascript">			
										jQuery("#ad_quick_contact_calendar").datepicker();
									</script>
                              </td>                              
                              </tr>
                        </table>
                   </div>
                     <div class="aqc1 aqc_inputs aqc_radios">
                        <table cellpadding="0" cellspacing="0">
                              <tr>                              
                              <td class="aqcd_r" align="left"><input type="radio" value="" checked="checked" name="date"/></td>                              
                              <td class="aqcd_t" align="left" valign="middle">1-3 Weeks</td>                              
                              <td class="aqcd_r" align="left"><input type="radio" value="" name="date"/></td>
                              <td class="aqcd_t aqcd_t2" align="left" valign="middle">Monthly</td>                              
                              <td class="aqcd_r"><input type="radio" value="" name="date"/></td> 
                              <td class="aqcd_t" align="left" valign="middle">More</td>                      
                              </tr>
                        </table>
                   </div>
                   <div class="aqc_spac">
                     <img src="<?php echo $this->getSkinUrl()?>images/ad_3colum_qu_co_space.png" />
                   </div>
                   <div class="aqc_radios  aqc_sub">
                       <table cellpadding="0" cellspacing="0">
                           <tr>
                              <td align="left" valign="top" width="17px"><input type="checkbox" style=" width:auto; height:auto; margin-top:4px;"/></td>
                              <td align="left" style="color:#2f2a2b; font-size:10px; width:150px; line-height:11px; font-family:Verdana, Geneva, sans-serif; font-style:normal; ">Send me news from <br />all DCLT Centres </td>
                              <td align="left"><input type="image"  src="<?php echo $this->getSkinUrl()?>images/ad_3colum_quik_c_e_subbg.png"/></td>
                           </tr>
                       </table>
                   </div>
                   <div class="aqc1"></div>                   
                                                                            
             </div>
        </div>
        
		<div class="h_poll_module">
               <div class="h_poll_title">
                  <div>DAILY POLL</div>
                 </div>
               <?php $pollId= Mage::getSingleton('core/session')->getJustVotedPoll();
               if (empty($pollId)):?>
               <div class="h_poll_info_show" id="h_pooll_1" style="display:block;">
                   <div>
                   <?php $poll= Mage::getModel('poll/poll')->load(2);?>
                   <?php echo $poll->getPollTitle() ?>
                   </div>
               </div>
               <div class="h_poll_radios" id="h_pooll_2" style="display:block;">
               	   <form id="pollForm" action="<?php echo $this->getUrl()?>poll/vote/add/poll_id/2/" method="post" onsubmit="return validatePollAnswerIsSelected();">
                   <div class="radios">
                        <?php $answers = Mage::getModel('poll/poll_answer')->getCollection()
           					->addFieldToFilter('poll_id',array('in'=>$poll->getPollId() )); ?>
           				<?php $key=1; foreach ($answers as $answer):?>
                       <span class="r<?php echo $key?>"><input class="radio poll_vote" name="vote" id="vote_<?php echo $answer->getId() ?>" type="radio" value="<?php echo $answer->getAnswerId() ?>" />
                       <?php echo $answer->getAnswerTitle()?></span>
                       <?php $key++; endforeach;?>                     
                   </div>
                   <div class="tijiao"><input type="submit" value="&nbsp;"/></div>
                   </form>
               </div>   
               <?php else:?>  
               <div class="h_poll_pop_bg" id="h_pooll_3" style="display:block;">
                     <div class="h_poll_pop_con" >
                         <div style="font-size:11px; font-family:Verdana, Geneva, sans-serif; color:#ffffff; font-weight:normal;">Thank you for voting, so far it's...</div>
                         <div>
                         <?php 
                         		$poll = Mage::getModel('poll/poll')->load($pollId);
                                 $pollAnswers = Mage::getModel('poll/poll_answer')
						            ->getResourceCollection()
						            ->addPollFilter($pollId)
						            ->load()
						            ->countPercent($poll);
                         ?>
                         <?php $key=1; foreach( $pollAnswers as $answer ): ?>
                         	<?php if ($key==1):?>
                             <span style=" color:#ccff00; font-size:16px; font-weight:bold; font-family:Arial, Helvetica, sans-serif; margin-right:6px;"><?php echo $answer->getPercent() ?>% <?php echo $this->htmlEscape($answer->getAnswerTitle()) ?></span>
                         	<?php elseif ($key==2):?>
                         	 <span style=" color:#ff5ca5; font-size:16px; font-weight:bold; font-family:Arial, Helvetica, sans-serif;margin-right:6px;"><?php echo $answer->getPercent() ?>% <?php echo $this->htmlEscape($answer->getAnswerTitle()) ?></span>
                         	<?php elseif ($key==3):?>
                         	<span  style=" color:#b591b8; font-size:16px; font-weight:bold; font-family:Arial, Helvetica, sans-serif;"><?php echo $answer->getPercent() ?>% <?php echo $this->htmlEscape($answer->getAnswerTitle()) ?></span>
                         	<?php endif;?>
                         	<?php $key++; endforeach;?>
                         </div>
                         <div style="font-size:11px; font-family:Verdana, Geneva, sans-serif; color:#ffffff; font-weight:normal; color:#b591b8;">Check back soon for another poll</div>    
                     
                     </div>                                      
               </div>       
               <?php endif;?>                  
      </div>
        <a class="banner_col3"  href="#"><img src="<?php echo $this->getSkinUrl()?>images/banner7.png"/></a> 
        <a class="banner_col3"  href="#"><img src="<?php echo $this->getSkinUrl()?>images/banner8.png"/></a> 
        </div>
      <div class="clearfloat"></div>
